import React from 'react';
import Style from './content.less';
import TopNav from '../components/topNav/topNav';

export default function Content(props) {
  let { activeIndex } = props;
  return (
    <div className={Style.content}>
      {activeIndex === 0 ? <TopNav></TopNav> : ''}

      <div className={Style.innerContent}>{props.children}</div>
    </div>
  );
}
